<script type="text/javascript">
  var Person = (function(){
    var name = "qi";
    function sayName(){
      console.log(name);
    }
    return {
      name: name,
      sayName: sayName
    }
  })()
</script>